<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>flex 布局</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        /* container */
        .container {
            display: flex;
            flex-direction: column;
            height: 100%;
            color: #fff;
            text-align: center;
            background-color: #cdc0ff;
        }

        /* header */
        .container .header {
            background-color: #999;
        }

        /* header，footer  common style*/
        .container .header,
        .container .footer {
            height: 50px;
            line-height: 50px;
        }

        /* content */
        .container .content {
            flex: 1;
            display: flex;
            color: #000;
            background-color: #f6f6f6;
        }

        .container .content>aside {
            width: 100px;
            background-color: #ddd;
        }

        .container .content>article {
            flex: 1;
            background-color: #ccc;
        }

        /* footer */
        .container .footer {
            background: #666;
            box-shadow: 0px 0px 3px rgba(179, 179, 179, 0.75);
        }
    </style>
</head>

<body>
    <div class="container">
        <header class="header">header</header>
        <section class="content">
            <aside class="content-nav"></aside>
            <article class="content-article">
                <div>article</div>
            </article>
        </section>
        <footer class="footer">footer</footer>
    </div>
</body>

</html>